<template>
	<view class="checkbox">
		<u-checkbox-group size="14" v-model="checked" @change="checkboxChange">
			<u-checkbox labelSize="14" shape="square" label="我已阅读并同意" name="1"></u-checkbox>
		</u-checkbox-group>
		<view class="gltx">《隐私政策》</view>
		<view>和</view>
		<view class="gltx">《产品服务协议》</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				checked: [],
			}
		},
		methods: {
			checkboxChange(arr){
				if(arr.length > 0){
					this.$emit('checkeVal', true)
				}else {
					this.$emit('checkeVal', false)
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.checkbox{
		font-size: 28rpx;
		display:flex;
		.gltx{
			color: $m-hight
		}
	}
</style>